package com.ruoyi.process.pipemaintainence2.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 审批意见对象 t_bpmn_approval
 *
 * @author Xianlu Tech
 * @date 2019-12-05
 */
public class TBpmnApproval extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 任务定义key */
    @Excel(name = "任务定义key")
    private String taskDefKey;

    /** 执行人id */
    @Excel(name = "执行人id")
    private String auditor;

    /** 任务id */
    @Excel(name = "任务id")
    private String taskId;

    /** 审批意见 */
    @Excel(name = "审批意见")
    private String opinion;

    /** 流程实例id */
    @Excel(name = "流程实例id")
    private String procInstId;

    /** 流程定义id */
    @Excel(name = "流程定义id")
    private String procDefId;

    /** 父流程实例id */
    @Excel(name = "父流程实例id")
    private String supInstId;

    /** 任务分配用户时间 */
    @Excel(name = "任务分配用户时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date assignTime;

    /** 结束时间 */
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date completeTime;

    /** 持续时间（ms） */
    @Excel(name = "持续时间", readConverterExp = "m=s")
    private Long durMs;

    /** 备注：如请假原因等 */
    @Excel(name = "备注：如请假原因等")
    private String comment;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }
    public void setTaskDefKey(String taskDefKey) {
        this.taskDefKey = taskDefKey;
    }

    public String getTaskDefKey() {
        return taskDefKey;
    }
    public void setAuditor(String auditor) {
        this.auditor = auditor;
    }

    public String getAuditor() {
        return auditor;
    }
    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getTaskId() {
        return taskId;
    }
    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }

    public String getOpinion() {
        return opinion;
    }
    public void setProcInstId(String procInstId) {
        this.procInstId = procInstId;
    }

    public String getProcInstId() {
        return procInstId;
    }
    public void setProcDefId(String procDefId) {
        this.procDefId = procDefId;
    }

    public String getProcDefId() {
        return procDefId;
    }
    public void setSupInstId(String supInstId) {
        this.supInstId = supInstId;
    }

    public String getSupInstId() {
        return supInstId;
    }
    public void setAssignTime(Date assignTime) {
        this.assignTime = assignTime;
    }

    public Date getAssignTime() {
        return assignTime;
    }
    public void setCompleteTime(Date completeTime) {
        this.completeTime = completeTime;
    }

    public Date getCompleteTime() {
        return completeTime;
    }
    public void setDurMs(Long durMs) {
        this.durMs = durMs;
    }

    public Long getDurMs() {
        return durMs;
    }
    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getComment() {
        return comment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("taskDefKey", getTaskDefKey())
            .append("auditor", getAuditor())
            .append("taskId", getTaskId())
            .append("opinion", getOpinion())
            .append("procInstId", getProcInstId())
            .append("procDefId", getProcDefId())
            .append("supInstId", getSupInstId())
            .append("assignTime", getAssignTime())
            .append("completeTime", getCompleteTime())
            .append("durMs", getDurMs())
            .append("comment", getComment())
            .toString();
    }
}
